package com.nuc.seckill.base;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 秒杀请求
 *
 * @author 石一歌
 * @date 2022-08-09 23:56
 */
@Data
@Accessors(chain = true)
public class SeckillReq implements Serializable {
    @NotNull(message = "产品id 不能为空")
    private Long productId;
    private Long userId;
}
